package com.wy.service.impl.wy;

import com.wy.dao.NoticeRelationMapper;
import com.wy.model.sys.NoticeRelation;
import com.wy.service.wy.NoticeRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("noticeRelationServiceImpl")
public class NoticeRelationServiceImpl implements NoticeRelationService {

	@Autowired
	private NoticeRelationMapper noticeRelationMapper;


	@Override
	public int delete(Integer id) {
		return noticeRelationMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(NoticeRelation record) {
		return noticeRelationMapper.insert(record);
	}

	@Override
	public NoticeRelation selectByPrimaryKey(Integer id) {
		return noticeRelationMapper.selectByPrimaryKey(id);
	}

//	@Override
//	public List<Integer> getNoticeByRIds(List<String> groupId, Integer type) {
//		return noticeRelationMapper.getNoticeByRIds(groupId,type);
//	}

	@Override
	public void insertBatch(List<NoticeRelation> list) {
		noticeRelationMapper.insertBatch(list);
	}

	@Override
	public void modifyReadStatus(int id, int uid) {
		noticeRelationMapper.modifyReadStatus(id,uid);
	}

	@Override
	public void deleteNoticeRelation(List<String> groupId) {
		noticeRelationMapper.deleteNoticeRelation(groupId);
	}


}
